import java.util.function.Function;

/**
 * @author zhu
 * @date 2024-04-10
 */
public class MainTest01 {
    public static void main(String[] args) {
        Function<String ,Student> fun = (s) -> {
            String[] str = s.split(",");
            String name = str[0];
            int age = Integer.parseInt(str[1]);
            return new Student(name, age);
        };
        System.out.println(fun.apply("张三,18"));
    }
}
